package net.app.zoneland.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import net.app.zoneland.common.core.entity.BaseEntity;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * @Description
 * @Author cjb
 * @CreateTime 2020/12/20 12:57
 * @Version: 1.0
 */
@Data
public class SysRole extends BaseEntity {

    @TableId(type= IdType.AUTO)
    private Integer id;

    @NotEmpty(message = "角色名不可为空")
    private String name;

    @NotEmpty(message = "角色代码不可为空")
    private String perms;

    private Integer sort;

    private Integer status;

    private Integer deleted;

    private String remark;

    private Date gmtCreate;

    @TableField(exist = false)
    private List<Integer> menuIds;

    @TableField(exist = false)
    private List<Integer> resourceIds;

}
